#ifndef CLOCK_H
#define CLOCK_H

#include <QWidget>

namespace Ui {
class Clock;
}

class Clock : public QWidget
{
    Q_OBJECT

public:
    explicit Clock(QWidget *parent = nullptr);
    ~Clock();
    void set_height(int h);

private:
    Ui::Clock *ui;
    void minute_up();
    bool check_time();

    int hour_;
    int minute_;
    QTimer* timer;
    QTimer* timer_remain;
};

#endif // CLOCK_H
